-- GENERATED SPELL FOR [Nethervine Trickster] --


function spell0_19843(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(34614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19843', 590, 1)
end

function spell1_19843(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(30991,pUnit)
pUnit:RegisterEvent('Sorts_19843', 0, 1)
end

function Sorts_19843(pUnit, Event)
local choix_sorts_19843 = math.random(0, 1)
if choix_sorts_19843 == 0 then
pUnit:RegisterEvent('spell0_19843', 1, 1)
end
if choix_sorts_19843 == 1 then
pUnit:RegisterEvent('spell1_19843', 1, 1)
end
end

function mob19843_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19843', math.random(1500, 3000), 1)
end

function mob19843_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19843_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19843_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19843, 1, 'mob19843_Action')
RegisterUnitEvent(19843, 2, 'mob19843_Leave')
RegisterUnitEvent(19843, 3, 'mob19843_Kill')
RegisterUnitEvent(19843, 4, 'mob19843_Die')
